package com.sc.study.foundation.domain;

import com.sc.common.annotation.Excel;
import com.sc.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 课程章节对象 subjectChapter
 * 
 * @author sc
 * @date 2022-03-05
 */
public class ScSubjectChapter extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 章节名称 */
    @Excel(name = "章节名称")
    private String name;

    /** 顺序 */
    @Excel(name = "顺序")
    private Long order;

    /** 课程编号 */
    @Excel(name = "课程编号")
    private Long subjectid;

    /** 课时 */
    @Excel(name = "课时")
    private Long chaptertime;

    /** 课程 */
    private ScSubject scSubject;

    public Long getChaptertime() {
        return chaptertime;
    }

    public void setChaptertime(Long chaptertime) {
        this.chaptertime = chaptertime;
    }

    public ScSubject getScSubject() {
        return scSubject;
    }

    public void setScSubject(ScSubject scSubject) {
        this.scSubject = scSubject;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setOrder(Long order) 
    {
        this.order = order;
    }

    public Long getOrder() 
    {
        return order;
    }
    public void setSubjectid(Long subjectid) 
    {
        this.subjectid = subjectid;
    }

    public Long getSubjectid() 
    {
        return subjectid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("order", getOrder())
            .append("subjectid", getSubjectid())
            .toString();
    }
}
